﻿//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;

//using System.Management.Automation;

//using ESF.MUP.BasePlatform;
//using ESF.MUP.BasePlatform.Services;
//using ESF.MUP.BasePlatform.Domain.Model;
//using ESF.MUP.BasePlatform.ApplicationServices.Interfaces;
////using ESF.MUP.BasePlatform.DbService;
////using ESF.MUP.BasePlatform.DbService.MSSQL;

//using Microsoft.Practices.Unity;

//namespace ESF.MUP.Powershell
//{
//    [Cmdlet(VerbsCommon.Remove, "Application")]
//    public class RemoveApplication : BaseCmdlet
//    {

//        [Parameter(ParameterSetName="ByName", Mandatory=true)]
//        public String Name { get; set; }


//        [Parameter(ParameterSetName = "ById", Mandatory = true)]
//        public Int32 Id { get; set; }




//        protected override void ProcessRecord()
//        {
//            IApplicationService appSvc = MiddlewareManagementService.Current.GetApplicationService();

//            Application app = null;
//            if (!String.IsNullOrEmpty(this.Name))
//            {
//                app = appSvc.GetByName(this.Name);
//            }
//            else
//            {
//                app = appSvc.GetById(this.Id);
//            }

//            if (app != null)
//            {
//                appSvc.Delete(app);
//            }

//        }
//    }
//}
